#coding:utf-8
=begin
 商户控制类 
=end
class CustomersController < ApplicationController

=begin
 商户注册页面 
=end  
  def new
    @customer = Customer.new
  end
  
=begin
 保存商户注册信息 
=end
  def create
    @customer = Customer.new(params[:customer])
#     @customer_info = @customer.create(params[:customer][:customer_info])*/
    if @customer.save
      flash[:notice] = "注册成功!"
      redirect_to root_path
    else
      flash[:notice] = "注册失败啦"
      render :new
    end
  end
end
